import Vue from "vue"
import Vuex from "vuex"
import home from "./modules/home"
import search from "./modules/search"
import detail from "./modules/detail"
import shopcart from "./modules/shopcart"
import center from "./modules/center"
import user from "./modules/user"
import pay from "./modules/pay"

Vue.use(Vuex)

export default new Vuex.Store({
  state:{
    keyword:""
  },
  getters:{

  },
  mutations:{
    getKeyword(state,keyword){
      state.keyword = keyword
    }
  },
  actions:{

  },
  modules:{
    home,
    search,
    detail,
    shopcart,
    center,
    user,
    pay
  }
})